from wtforms import StringField, PasswordField, Form
from wtforms.validators import Length, DataRequired


class LoginForm(Form):
    username = StringField(
        "用户名", validators=[DataRequired()], render_kw={"placeholder": "请输入用户名"})
    password = PasswordField("密码", validators=[DataRequired(), Length(6, 20)])
